import request from "@/utils/request";

// 查询年级列表
export function listDiction(params) {
  return request({
    url: "/project/class/list",
    method: "get",
    params,
  });
}
// 新增
export function savaDiction(data) {
  return request({
    url: "/project/class",
    method: "post",
    data,
  });
}
// 编辑
export function putDiction(data) {
  return request({
    url: "/project/class",
    method: "put",
    data,
  });
}
// 删除
export function deleteDiction(id) {
  return request({
    url: `/project/class/${id}`,
    method: "delete",
  });
}
